/*
 * Copyright (c) 2013-2015 Charkey. All rights reserved.
 *
 * This software is the confidential and proprietary information of Charkey.
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the agreements you entered into with Charkey.
 *
 * Charkey MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
 *
 * Charkey SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
 * MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */

package cn.simastudio.talos.core.exception.biz;

import cn.simastudio.talos.core.constants.MessageCode;
import cn.simastudio.talos.core.exception.base.BaseException;

/**
 * Usage: 接口调用方和数据拥有者不匹配
 *
 * @author Charkey
 * @date 2015/6/15 16:46
 */
public class OperatorMismatchException extends BaseException {

    public static final String ERROR_MESSAGE_CODE = MessageCode.OPERATOR_MISMATCH_ERROR;

    public static final String DEFAULT_MESSAGE = "Operator mismatch：Data operator should match data owner";

    public OperatorMismatchException() {
        super(ERROR_MESSAGE_CODE, DEFAULT_MESSAGE);
    }

    public OperatorMismatchException(Object[] args) {
        super(ERROR_MESSAGE_CODE, args, DEFAULT_MESSAGE);
    }
}
